package com.hr.demo.config;

import com.hr.demo.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig {

    @Bean
    public ThreadLocal<User> threadLocal(){

        return new ThreadLocal<User>();
    }
}
